import time

WIDTH = 444
HEIGHT = 444
BACK_COLOR = (0,0,0)
x,y,r,clr = 50,50,20,(0xff,0xff,0xff)
CIRCLE_COLOR = (0xff,0xff,0xff)

ot = time.time()

def Update():
    global ot
    nt = time.time()
    btw = nt - ot
    ot = nt
    fps = 1 / btw
    move = 5 / fps
    return move

def Draw():
    screen.clear()
    screen.fill(BACK_COLOR)
    screen.draw.filled_circle((50,50),20,CIRCLE_COLOR)
    print("DRAW")
#        pass
    
def update():
    global x
    screen.fill(BACK_COLOR)
    move = 0
    if x <= 200:
        move = Update()
    screen.draw.filled_circle((x,50),20,CIRCLE_COLOR)
    x += move
    print("x:",x)
    if x > 200:
        
        quit()
        
    print("UPDATE")